﻿<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<UncleBobWebService.Models.HMRegisterModel>" %>
<!DOCTYPE html>

<html>
<head id="Head1" runat="server">
    <meta name="viewport" content="width=device-width" />
    <title>Applicant List</title>
    <link href="/Theme/UncleBobTheme.css" rel="Stylesheet" />
</head>
<script>
</script>

<body class="body">
    <!-- Headers -->
    <h2>Applicant List</h2>

    <div class="box">
      
        <!-- Buttons -->

      <%using (Html.BeginForm("FormAction", "HMMainMenu")) {%>
        
               
               
           <% foreach (var application in Model.apps) {%>
             <% foreach (var app in application.jobApps) {%>
            <div class="appRow">

            <div class="cell"><%=Html.RadioButton("application", app.AppID)%></div>  
            &nbsp
            <div class="col left"><%=Html.DisplayFor(model => app.Job.Title)%></div>
            &nbsp&nbsp

            <div class="col left"><%=Html.DisplayFor(model => app.Job.Location)%></div>
            &nbsp&nbsp

            <div class="colName left"><%=Html.DisplayFor(model => application.FirstName)%> 
            
            <%=Html.DisplayFor(model => application.MI)%> 
           
            <%=Html.DisplayFor(model => application.LastName)%></div>
            &nbsp&nbsp             
           
            <div class="cell"><%=Html.DisplayFor(model => app.ApplyDate)%></div> 
            &nbsp&nbsp
           
            <div class="col datePadding"><%=Html.DisplayFor(model => application.ViewedStatus)%></div>
            &nbsp&nbsp 
             
          <%}%>             
          
           
           <br />
           </div>
       
            <br />
                    
                                 

           <%}%>    
           
            <br /><br /><br /> 
            <%  %>

            <input class="button" type="submit" name="viewApp" value="ViewApp" />            
            <input class="applicant_boxes" type="submit" id="Submit7" name="reject" value="Reject" onclick="return confirm('Are you sure you want to reject this applicant?')" />   
            <input class="applicant_boxes" type="submit" id="Submit1" name="approve" value="Approve" onclick="return confirm('Are you sure you want to approve this applicant?')" />
            <input class="applicant_boxes" type="submit" id="Submit3" name="hire" value="Hire" onclick="return confirm('Are you sure you want to hire this applicant?')" />
            <br />
            <input class="applicant_boxes" type="submit" id="Submit2" name="previous" value="Previous" onclick="return cmdCreate_onclick()" />  
            <br /> 
           
       &nbsp;<%}%></div>
    
</body>
</html>
